﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    [Serializable]
    public class member_purchased
    {

        public member_purchased()
        { }
        #region MyRegion

        public int id { get; set; }

        /// <summary>
        /// 会员id
        /// </summary>
        public int member_id { get; set; }

        /// <summary>
        /// 关联类型 1-单个内容2-栏目3-咨询4-直播
        /// </summary>
        public int union_type { get; set; }

        /// <summary>
        /// 关联id
        /// </summary>
        public int union_id { get; set; }

        /// <summary>
        /// 购买时间
        /// </summary>
        public DateTime purchased_time { get; set; }

        /// <summary>
        /// 购买方式 1-微信支付2优惠券
        /// </summary>
        public int purchased_method { get; set; }

        /// <summary>
        /// 应付金额
        /// </summary>
        public decimal amount_payable { get; set; }

        /// <summary>
        /// 实付金额
        /// </summary>
        public decimal purchased_expense { get; set; }

        /// <summary>
        /// 优惠券id
        /// </summary>
        public int coupon_id { get; set; }

        /// <summary>
        /// 到期时间
        /// </summary>
        public DateTime? maturity_time { get; set; }

        /// <summary>
        /// 剩余次数
        /// </summary>
        public int buyNum { get; set; }


        /// <summary>
        /// 购买类型 1-时间2-次数
        /// </summary>
        public int buyType { get; set; }

        /// <summary>
        /// 购买状态(主要用于直播)  1-已购买-2已使用
        /// </summary>
        public int buyState { get; set; }

        /// <summary>
        /// 直播观看码
        /// </summary>
        public string liveCode { get; set; }
        #endregion



    }
}
